//
//  InformControl.m
//  FreeTime
//
//  Created by ti on 16/8/30.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import "InformControl.h"
#import "Header.h"
@interface InformControl ()

@end

@implementation InformControl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNav];
    [self setupUI];
    
}
- (void)setupUI {
    self.navigationItem.title = @"消息通知";
    NSArray *titleArr = @[@"声音",@"震动"];
    for (int i=0; i<2; i++) {
        UILabel *titleL = [[UILabel alloc] initWithFrame:CGRectMake(10, 22+i*50, 100, 14)];
        titleL.font = FONT(14);
        titleL.text = [titleArr objectAtIndex:i];
        titleL.textAlignment = NSTextAlignmentLeft;
        titleL.textColor = [ImageUtil colorWithRgb:0x666666];
        [self.view addSubview:titleL];
        
        UISwitch *sw = [[UISwitch alloc] initWithFrame:CGRectMake(WindowWidth-52, 15+i*50, 0, 0)];
        sw.transform = CGAffineTransformMakeScale(0.65, 0.65);
        sw.onTintColor = HOME_COLOR;
        [self.view addSubview:sw];
        
        [ToolUtil createLine:54+i*50 superView:self.view lift:10 width:WindowWidth-20 hight:1 color:[ImageUtil colorWithRgb:0xEBEBEB]];
    }
    UILabel *fontL = [[UILabel alloc] initWithFrame:CGRectMake(10, 125, WindowWidth-20, 12)];
    fontL.font = FONT(10);
    fontL.text = @"当喵会正在运行时，你可以设置是否需要声音和震动";
    fontL.textAlignment = NSTextAlignmentLeft;
    fontL.textColor = [ImageUtil colorWithRgb:0x999999];
    [self.view addSubview:fontL];
}



























@end
